package brave;

public class ObserverWallSign implements IWallSign
{
	private Integer gameId = null;
	
	public ObserverWallSign(int game)
	{
		this.gameId = game;
	}

	@Override
	public void onPlayerInteract(WallPlayer player)
	{
		Brave.getWallGame(this.gameId).addObserver(player);
		player.setState(WallPlayerState.OBSERVING_GAME);
		player.getBukkitPlayer().teleport(Brave.getObserverLocation(this.gameId));
	}

	@Override
	public Integer getGameId()
	{
		return this.gameId;
	}

	@Override
	public Integer getTeamId()
	{
		return null;
	}

}
